module.exports = class extends require('egg').Controller {
  async welcome() {
    this.ctx.body = '<h1>hi</h1>';
  }
  async index() {
    const { ctx } = this;
    const data = await ctx.service.config.selectAll();
    ctx.helper.res({ data });
  }
  async sts() {
    const { ctx } = this;
    const data = await ctx.service.config.sts();
    ctx.helper.res({ data });
  }
};
